import {server} from '../config';

export const getAllAuthority = params => {
    return server({
        method: 'get',
        url: '/authority/getAllAuthority',
        params
    });
};


export const addAuthority = data => {
    return server({
        method: 'post',
        url: '/authority/addAuthority',
        data
    });
};

export const deleteAuthority = params => {
    return server({
        method: 'delete',
        url: `/authority/deleteAuthority/${params.authorityId}`,
    });
};


